// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 此处后端没有提供注释 POST /userInterface/grant */
export async function grantInterface(body: API.IdRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/api/userInterface/grant', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /userInterface/invoke */
export async function invokeInterface(
  body: API.InvokeInterfaceRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseString>('/api/userInterface/invoke', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /userInterface/list */
export async function listUserInterface(options?: { [key: string]: any }) {
  return request<API.BaseResponseListUserInterfaceVo>('/api/userInterface/list', {
    method: 'GET',
    ...(options || {}),
  });
}
